<template>
<div class="wrapper">
 <swiper :options="swiperOption">
   <swiper-slide v-for="(item) in swiperList" :key="item.id">
     <img :src="item.imgUrl" alt="" class="swiper-img">
    </swiper-slide>
   <div class="swiper-pagination" slot="pagination">
   </div>
 </swiper>
 </div>
</template>
<script>
export default {
  name: 'HomeSwiper',
  data() {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      },
      swiperList: [
        {
          id: '01',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20195/aef5f8864f5a1167599609307571b2c4.jpg_750x200_db7bedbe.jpg'
        },
        {
          id: '02',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20196/bc62e131afb380e98e4beac33e751c6c.jpg_750x200_2e248116.jpg'
        },
        {
          id: '03',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20196/b421363bbbb9184deacb4247eeea7485.jpg_750x200_12b42643.jpg'
        }
      ]
    }
  }
}
</script>
<style lang="scss" scoped>
.wrapper >>> .swiper-pagination-bullet-active{
    background: #fff !important;
  }
.wrapper{
  overflow: hidden;
  width:100%;
  height: 0;
  padding-bottom: 26.6%;
  background: #eee;
  .swiper-img{
    width: 100%;
  }
}
</style>

